2019-02-21 11:51:49 +01:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'account.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2019-09-27 14:52:38 +02:00
|
|
|
Account _$AccountFromJson(Map<String, dynamic> json) {
|
|
|
|
return Account(
|
2019-09-26 16:14:14 +02:00
|
|
|
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,
|
2019-12-30 13:50:31 +01:00
|
|
|
gitlabId: json['gitlabId'] as int,
|
2019-09-26 16:14:14 +02:00
|
|
|
);
|
2019-02-21 11:51:49 +01:00
|
|
|
}
|
|
|
|
|
2020-02-01 10:57:51 +01:00
|
|
|
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);
|
|
|
|
return val;
|
|
|
|
}
|