lemmur-app-android/lib/stores/accounts_store.g.dart

43 lines
1.4 KiB
Dart
Raw Permalink Normal View History

2021-02-24 21:54:15 +01:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'accounts_store.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
2021-09-13 23:37:08 +02:00
AccountsStore _$AccountsStoreFromJson(Map<String, dynamic> json) =>
AccountsStore()
..accounts = (json['accounts'] as Map<String, dynamic>?)?.map(
(k, e) => MapEntry(
k,
(e as Map<String, dynamic>).map(
(k, e) =>
MapEntry(k, UserData.fromJson(e as Map<String, dynamic>)),
)),
) ??
{'lemmy.ml': {}}
..defaultAccounts =
(json['defaultAccounts'] as Map<String, dynamic>?)?.map(
(k, e) => MapEntry(k, e as String),
) ??
{}
..defaultAccount = json['defaultAccount'] as String?;
2021-02-24 21:54:15 +01:00
Map<String, dynamic> _$AccountsStoreToJson(AccountsStore instance) =>
<String, dynamic>{
2021-04-11 18:27:22 +02:00
'accounts': instance.accounts,
2021-02-24 21:54:15 +01:00
'defaultAccounts': instance.defaultAccounts,
'defaultAccount': instance.defaultAccount,
};
2021-04-11 18:27:22 +02:00
2021-09-13 23:37:08 +02:00
UserData _$UserDataFromJson(Map<String, dynamic> json) => UserData(
jwt: Jwt.fromJson(json['jwt'] as String),
userId: json['userId'] as int,
);
2021-04-11 18:27:22 +02:00
Map<String, dynamic> _$UserDataToJson(UserData instance) => <String, dynamic>{
'jwt': instance.jwt,
'userId': instance.userId,
};