HadoopStepConfig.fromJson constructor

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

Implementation

factory HadoopStepConfig.fromJson(Map<String, dynamic> json) {
  return HadoopStepConfig(
    args: (json['Args'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    jar: json['Jar'] as String?,
    mainClass: json['MainClass'] as String?,
    properties: (json['Properties'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}