fromJson static method
Inherited by: SessionTypeConnectedBot SessionTypeDevice
Implementation
static SessionTypeDevice? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return SessionTypeDevice(
sessionId:
int.tryParse((json['session_id'] as dynamic)?.toString() ?? '') ?? 0,
);
}