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