chore(llc): re-generate all files

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-04-08 15:30:57 +05:30
parent c80fc0a6b4
commit c289871a56
21 changed files with 507 additions and 636 deletions
@@ -8,8 +8,8 @@ part of 'user.dart';
User _$UserFromJson(Map json) {
return User(
id: json['id'] as String,
role: json['role'] as String,
id: json['id'] as String?,
role: json['role'] as String?,
createdAt: json['created_at'] == null
? null
: DateTime.parse(json['created_at'] as String),
@@ -19,12 +19,12 @@ User _$UserFromJson(Map json) {
lastActive: json['last_active'] == null
? null
: DateTime.parse(json['last_active'] as String),
online: json['online'] as bool,
extraData: (json['extra_data'] as Map)?.map(
online: json['online'] as bool?,
extraData: (json['extra_data'] as Map?)?.map(
(k, e) => MapEntry(k as String, e),
),
banned: json['banned'] as bool,
teams: (json['teams'] as List)?.map((e) => e as String)?.toList(),
banned: json['banned'] as bool?,
teams: (json['teams'] as List<dynamic>?)?.map((e) => e as String).toList(),
);
}