GitLabConfig.fromJson constructor

GitLabConfig.fromJson(
  1. Map json_
)

Implementation

GitLabConfig.fromJson(core.Map json_)
    : this(
        connectedRepositories: json_.containsKey('connectedRepositories')
            ? (json_['connectedRepositories'] as core.List)
                .map((value) => GitLabRepositoryId.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        enterpriseConfig: json_.containsKey('enterpriseConfig')
            ? GitLabEnterpriseConfig.fromJson(json_['enterpriseConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        secrets: json_.containsKey('secrets')
            ? GitLabSecrets.fromJson(
                json_['secrets'] as core.Map<core.String, core.dynamic>)
            : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
        webhookKey: json_.containsKey('webhookKey')
            ? json_['webhookKey'] as core.String
            : null,
      );