Examples_ExampleGcsSource.fromJson constructor

Examples_ExampleGcsSource.fromJson(
  1. Object? j
)

Implementation

factory Examples_ExampleGcsSource.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Examples_ExampleGcsSource(
    dataFormat: switch (json['dataFormat']) {
      null => Examples_ExampleGcsSource_DataFormat.$default,
      Object $1 => Examples_ExampleGcsSource_DataFormat.fromJson($1),
    },
    gcsSource: switch (json['gcsSource']) {
      null => null,
      Object $1 => GcsSource.fromJson($1),
    },
  );
}