Source.fromJson constructor

Source.fromJson(
  1. Object? j
)

Implementation

factory Source.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return Source(
    storageSource: switch (json['storageSource']) {
      null => null,
      Object $1 => StorageSource.fromJson($1),
    },
    repoSource: switch (json['repoSource']) {
      null => null,
      Object $1 => RepoSource.fromJson($1),
    },
    gitUri: switch (json['gitUri']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}