InputDataConfig.fromJson constructor

InputDataConfig.fromJson(
  1. Object? j
)

Implementation

factory InputDataConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return InputDataConfig(
    fractionSplit: switch (json['fractionSplit']) {
      null => null,
      Object $1 => FractionSplit.fromJson($1),
    },
    filterSplit: switch (json['filterSplit']) {
      null => null,
      Object $1 => FilterSplit.fromJson($1),
    },
    predefinedSplit: switch (json['predefinedSplit']) {
      null => null,
      Object $1 => PredefinedSplit.fromJson($1),
    },
    timestampSplit: switch (json['timestampSplit']) {
      null => null,
      Object $1 => TimestampSplit.fromJson($1),
    },
    stratifiedSplit: switch (json['stratifiedSplit']) {
      null => null,
      Object $1 => StratifiedSplit.fromJson($1),
    },
    gcsDestination: switch (json['gcsDestination']) {
      null => null,
      Object $1 => GcsDestination.fromJson($1),
    },
    bigqueryDestination: switch (json['bigqueryDestination']) {
      null => null,
      Object $1 => BigQueryDestination.fromJson($1),
    },
    datasetId: switch (json['datasetId']) {
      null => '',
      Object $1 => decodeString($1),
    },
    annotationsFilter: switch (json['annotationsFilter']) {
      null => '',
      Object $1 => decodeString($1),
    },
    annotationSchemaUri: switch (json['annotationSchemaUri']) {
      null => '',
      Object $1 => decodeString($1),
    },
    savedQueryId: switch (json['savedQueryId']) {
      null => '',
      Object $1 => decodeString($1),
    },
    persistMlUseAssignment: switch (json['persistMlUseAssignment']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}