chore(llc): re-generate all files
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -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(),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user