UserRow.fromJson constructor
Implementation
factory UserRow.fromJson(Map<String, dynamic> json,
{ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return UserRow(
id: serializer.fromJson<String>(json['id']),
num: serializer.fromJson<String>(json['num']),
name: serializer.fromJson<String?>(json['name']),
bio: serializer.fromJson<String?>(json['bio']),
avatar: serializer.fromJson<String?>(json['avatar']),
callCover: serializer.fromJson<String?>(json['callCover']),
mutualContactsCount:
serializer.fromJson<int>(json['mutualContactsCount']),
online: serializer.fromJson<bool>(json['online']),
presenceIndex: serializer.fromJson<int?>(json['presenceIndex']),
status: serializer.fromJson<String?>(json['status']),
isDeleted: serializer.fromJson<bool>(json['isDeleted']),
dialog: serializer.fromJson<String?>(json['dialog']),
isBlocked: serializer.fromJson<String?>(json['isBlocked']),
lastSeenAt: serializer.fromJson<PreciseDateTime?>(json['lastSeenAt']),
contacts: serializer.fromJson<String>(json['contacts']),
ver: serializer.fromJson<String>(json['ver']),
blockedVer: serializer.fromJson<String>(json['blockedVer']),
welcomeMessage: serializer.fromJson<String?>(json['welcomeMessage']),
);
}