CallServer.fromJson constructor

CallServer.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory CallServer.fromJson(Map<String, dynamic> json) => CallServer(
      id: int.parse(json['id']),
      ipAddress: json['ip_address'],
      ipv6Address: json['ipv6_address'],
      port: json['port'],
      type: CallServerType.fromJson(json['type']),
    );