mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 23:18:16 -07:00
Init repo
This commit is contained in:
commit
764b6034e3
566 changed files with 212335 additions and 0 deletions
50
lib/models/account_model.g.dart
Normal file
50
lib/models/account_model.g.dart
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'account_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
_$AccountModelImpl _$$AccountModelImplFromJson(Map<String, dynamic> json) =>
|
||||
_$AccountModelImpl(
|
||||
name: json['name'] as String,
|
||||
id: json['id'] as String,
|
||||
avatar: json['avatar'] as String,
|
||||
lastUsed: DateTime.parse(json['lastUsed'] as String),
|
||||
authMethod:
|
||||
$enumDecodeNullable(_$AuthenticationEnumMap, json['authMethod']) ??
|
||||
Authentication.autoLogin,
|
||||
localPin: json['localPin'] as String? ?? "",
|
||||
credentials: CredentialsModel.fromJson(json['credentials'] as String),
|
||||
latestItemsExcludes: (json['latestItemsExcludes'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList() ??
|
||||
const [],
|
||||
searchQueryHistory: (json['searchQueryHistory'] as List<dynamic>?)
|
||||
?.map((e) => e as String)
|
||||
.toList() ??
|
||||
const [],
|
||||
quickConnectState: json['quickConnectState'] as bool? ?? false,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$$AccountModelImplToJson(_$AccountModelImpl instance) =>
|
||||
<String, dynamic>{
|
||||
'name': instance.name,
|
||||
'id': instance.id,
|
||||
'avatar': instance.avatar,
|
||||
'lastUsed': instance.lastUsed.toIso8601String(),
|
||||
'authMethod': _$AuthenticationEnumMap[instance.authMethod]!,
|
||||
'localPin': instance.localPin,
|
||||
'credentials': instance.credentials,
|
||||
'latestItemsExcludes': instance.latestItemsExcludes,
|
||||
'searchQueryHistory': instance.searchQueryHistory,
|
||||
'quickConnectState': instance.quickConnectState,
|
||||
};
|
||||
|
||||
const _$AuthenticationEnumMap = {
|
||||
Authentication.autoLogin: 'autoLogin',
|
||||
Authentication.biometrics: 'biometrics',
|
||||
Authentication.passcode: 'passcode',
|
||||
Authentication.none: 'none',
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue