RemoteLocation.fromJson constructor

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

Implementation

factory RemoteLocation.fromJson(Map<String, dynamic> json) {
  return RemoteLocation(
    host: json['host'] as String,
    port: json['port'] as int,
  );
}