RepoSource.fromJson constructor
RepoSource.fromJson(
- Map json_
Implementation
RepoSource.fromJson(core.Map json_)
: this(
branchName: json_.containsKey('branchName')
? json_['branchName'] as core.String
: null,
commitSha: json_.containsKey('commitSha')
? json_['commitSha'] as core.String
: null,
dir: json_.containsKey('dir') ? json_['dir'] as core.String : null,
invertRegex: json_.containsKey('invertRegex')
? json_['invertRegex'] as core.bool
: null,
projectId: json_.containsKey('projectId')
? json_['projectId'] as core.String
: null,
repoName: json_.containsKey('repoName')
? json_['repoName'] as core.String
: null,
substitutions: json_.containsKey('substitutions')
? (json_['substitutions'] as core.Map<core.String, core.dynamic>)
.map(
(key, value) => core.MapEntry(
key,
value as core.String,
),
)
: null,
tagName: json_.containsKey('tagName')
? json_['tagName'] as core.String
: null,
);