MyUserRow.fromJson constructor
Implementation
factory MyUserRow.fromJson(Map<String, dynamic> json,
{ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return MyUserRow(
id: serializer.fromJson<String>(json['id']),
num: serializer.fromJson<String>(json['num']),
login: serializer.fromJson<String?>(json['login']),
name: serializer.fromJson<String?>(json['name']),
bio: serializer.fromJson<String?>(json['bio']),
hasPassword: serializer.fromJson<bool>(json['hasPassword']),
emails: serializer.fromJson<String>(json['emails']),
phones: serializer.fromJson<String>(json['phones']),
chatDirectLink: serializer.fromJson<String?>(json['chatDirectLink']),
unreadChatsCount: serializer.fromJson<int>(json['unreadChatsCount']),
status: serializer.fromJson<String?>(json['status']),
avatar: serializer.fromJson<String?>(json['avatar']),
callCover: serializer.fromJson<String?>(json['callCover']),
presenceIndex: serializer.fromJson<int>(json['presenceIndex']),
online: serializer.fromJson<bool>(json['online']),
muted: serializer.fromJson<String?>(json['muted']),
blocklistCount: serializer.fromJson<int?>(json['blocklistCount']),
lastSeenAt: serializer.fromJson<PreciseDateTime?>(json['lastSeenAt']),
ver: serializer.fromJson<String>(json['ver']),
welcomeMessage: serializer.fromJson<String?>(json['welcomeMessage']),
);
}