RepoSource.fromJson constructor
RepoSource.fromJson(
- Object? j
Implementation
factory RepoSource.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return RepoSource(
branchName: switch (json['branchName']) {
null => null,
Object $1 => decodeString($1),
},
tagName: switch (json['tagName']) {
null => null,
Object $1 => decodeString($1),
},
commitSha: switch (json['commitSha']) {
null => null,
Object $1 => decodeString($1),
},
projectId: switch (json['projectId']) {
null => '',
Object $1 => decodeString($1),
},
repoName: switch (json['repoName']) {
null => '',
Object $1 => decodeString($1),
},
dir: switch (json['dir']) {
null => '',
Object $1 => decodeString($1),
},
invertRegex: switch (json['invertRegex']) {
null => false,
Object $1 => decodeBool($1),
},
);
}