CaPool.fromJson constructor

CaPool.fromJson(
  1. Map json_
)

Implementation

CaPool.fromJson(core.Map json_)
    : this(
        issuancePolicy: json_.containsKey('issuancePolicy')
            ? IssuancePolicy.fromJson(json_['issuancePolicy']
                as core.Map<core.String, core.dynamic>)
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        publishingOptions: json_.containsKey('publishingOptions')
            ? PublishingOptions.fromJson(json_['publishingOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
        tier: json_.containsKey('tier') ? json_['tier'] as core.String : null,
      );