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