CseKeyPair.fromJson constructor

CseKeyPair.fromJson(
  1. Map json_
)

Implementation

CseKeyPair.fromJson(core.Map json_)
    : this(
        disableTime: json_.containsKey('disableTime')
            ? json_['disableTime'] as core.String
            : null,
        enablementState: json_.containsKey('enablementState')
            ? json_['enablementState'] as core.String
            : null,
        keyPairId: json_.containsKey('keyPairId')
            ? json_['keyPairId'] as core.String
            : null,
        pem: json_.containsKey('pem') ? json_['pem'] as core.String : null,
        pkcs7:
            json_.containsKey('pkcs7') ? json_['pkcs7'] as core.String : null,
        privateKeyMetadata: json_.containsKey('privateKeyMetadata')
            ? (json_['privateKeyMetadata'] as core.List)
                .map((value) => CsePrivateKeyMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        subjectEmailAddresses: json_.containsKey('subjectEmailAddresses')
            ? (json_['subjectEmailAddresses'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );