GcsSource.fromJson constructor

GcsSource.fromJson(
  1. Object? j
)

Implementation

factory GcsSource.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GcsSource(
    uris: switch (json['uris']) {
      null => [],
      List<Object?> $1 => [for (final i in $1) decodeString(i)],
      _ => throw const FormatException('"uris" is not a list'),
    },
  );
}