GerritSourceContext.fromJson constructor Null safety

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,
        aliasName: _json.containsKey('aliasName')
            ? _json['aliasName'] as core.String
            : 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,
      );