GerritSourceContext.fromJson constructor

GerritSourceContext.fromJson(
  1. Map _json
)

Implementation

GerritSourceContext.fromJson(core.Map _json)
    : this(
        aliasContext: _json.containsKey('aliasContext')
            ? AliasContext.fromJson(
                _json['aliasContext'] as core.Map<core.String, core.dynamic>)
            : null,
        gerritProject: _json.containsKey('gerritProject')
            ? _json['gerritProject'] as core.String
            : null,
        hostUri: _json.containsKey('hostUri')
            ? _json['hostUri'] as core.String
            : null,
        revisionId: _json.containsKey('revisionId')
            ? _json['revisionId'] as core.String
            : null,
      );