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