Source.fromJson constructor

Source.fromJson(
  1. Map _json
)

Implementation

Source.fromJson(core.Map _json)
    : this(
        repoSource: _json.containsKey('repoSource')
            ? RepoSource.fromJson(
                _json['repoSource'] as core.Map<core.String, core.dynamic>)
            : null,
        storageSource: _json.containsKey('storageSource')
            ? StorageSource.fromJson(
                _json['storageSource'] as core.Map<core.String, core.dynamic>)
            : null,
      );