GoogleCloudApigeeV1Credential.fromJson constructor

GoogleCloudApigeeV1Credential.fromJson(
  1. Map json_
)

Implementation

GoogleCloudApigeeV1Credential.fromJson(core.Map json_)
    : this(
        apiProducts: json_.containsKey('apiProducts')
            ? (json_['apiProducts'] as core.List)
                .map((value) => GoogleCloudApigeeV1ApiProductRef.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        attributes: json_.containsKey('attributes')
            ? (json_['attributes'] as core.List)
                .map((value) => GoogleCloudApigeeV1Attribute.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        consumerKey: json_.containsKey('consumerKey')
            ? json_['consumerKey'] as core.String
            : null,
        consumerSecret: json_.containsKey('consumerSecret')
            ? json_['consumerSecret'] as core.String
            : null,
        expiresAt: json_.containsKey('expiresAt')
            ? json_['expiresAt'] as core.String
            : null,
        issuedAt: json_.containsKey('issuedAt')
            ? json_['issuedAt'] as core.String
            : null,
        scopes: json_.containsKey('scopes')
            ? (json_['scopes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
      );