mirror of
https://github.com/git-touch/git-touch
synced 2024-12-20 20:13:55 +01:00
39 lines
1.1 KiB
Dart
39 lines
1.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'account.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Account _$AccountFromJson(Map<String, dynamic> json) {
|
|
return Account(
|
|
platform: json['platform'] as String,
|
|
domain: json['domain'] as String,
|
|
token: json['token'] as String,
|
|
login: json['login'] as String,
|
|
avatarUrl: json['avatarUrl'] as String,
|
|
gitlabId: json['gitlabId'] as int,
|
|
appPassword: json['appPassword'] as String,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$AccountToJson(Account instance) {
|
|
final val = <String, dynamic>{};
|
|
|
|
void writeNotNull(String key, dynamic value) {
|
|
if (value != null) {
|
|
val[key] = value;
|
|
}
|
|
}
|
|
|
|
writeNotNull('platform', instance.platform);
|
|
writeNotNull('domain', instance.domain);
|
|
writeNotNull('token', instance.token);
|
|
writeNotNull('login', instance.login);
|
|
writeNotNull('avatarUrl', instance.avatarUrl);
|
|
writeNotNull('gitlabId', instance.gitlabId);
|
|
writeNotNull('appPassword', instance.appPassword);
|
|
return val;
|
|
}
|