ServiceAccountKey.fromJson constructor

ServiceAccountKey.fromJson(
  1. Map json_
)

Implementation

ServiceAccountKey.fromJson(core.Map json_)
    : this(
        contact: json_.containsKey('contact')
            ? json_['contact'] as core.String
            : null,
        creator: json_.containsKey('creator')
            ? json_['creator'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        disableReason: json_.containsKey('disableReason')
            ? json_['disableReason'] as core.String
            : null,
        disabled: json_.containsKey('disabled')
            ? json_['disabled'] as core.bool
            : null,
        extendedStatus: json_.containsKey('extendedStatus')
            ? (json_['extendedStatus'] as core.List)
                .map((value) => ExtendedStatus.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        keyAlgorithm: json_.containsKey('keyAlgorithm')
            ? json_['keyAlgorithm'] as core.String
            : null,
        keyOrigin: json_.containsKey('keyOrigin')
            ? json_['keyOrigin'] as core.String
            : null,
        keyType: json_.containsKey('keyType')
            ? json_['keyType'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        privateKeyData: json_.containsKey('privateKeyData')
            ? json_['privateKeyData'] as core.String
            : null,
        privateKeyType: json_.containsKey('privateKeyType')
            ? json_['privateKeyType'] as core.String
            : null,
        publicKeyData: json_.containsKey('publicKeyData')
            ? json_['publicKeyData'] as core.String
            : null,
        validAfterTime: json_.containsKey('validAfterTime')
            ? json_['validAfterTime'] as core.String
            : null,
        validBeforeTime: json_.containsKey('validBeforeTime')
            ? json_['validBeforeTime'] as core.String
            : null,
      );