fromJson static method
Implementation
static BusinessConnectedBotInfo? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return BusinessConnectedBotInfo(
bot: BusinessConnectedBot.fromJson(tdMapFromJson(json['bot'])),
connectionDate: (json['connection_date'] as int?) ?? 0,
deviceModel: (json['device_model'] as String?) ?? '',
location: (json['location'] as String?) ?? '',
);
}