fromJson static method
Implementation
static CallServer? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return CallServer(
id: (json['id'] is int
? json['id'] as int
: int.tryParse(json['id']?.toString() ?? '')) ??
0,
ipAddress: (json['ip_address'] as String?) ?? '',
ipv6Address: (json['ipv6_address'] as String?) ?? '',
port: (json['port'] as int?) ?? 0,
type: CallServerType.fromJson(json['type'] as Map<String, dynamic>?)!,
);
}