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