NfsShare.fromJson constructor

NfsShare.fromJson(
  1. Map json_
)

Implementation

NfsShare.fromJson(core.Map json_)
    : this(
        allowedClients: json_.containsKey('allowedClients')
            ? (json_['allowedClients'] as core.List)
                .map((value) => AllowedClient.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : 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,
        nfsShareId: json_.containsKey('nfsShareId')
            ? json_['nfsShareId'] as core.String
            : null,
        pod: json_.containsKey('pod') ? json_['pod'] as core.String : null,
        requestedSizeGib: json_.containsKey('requestedSizeGib')
            ? json_['requestedSizeGib'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        storageType: json_.containsKey('storageType')
            ? json_['storageType'] as core.String
            : null,
        volume: json_.containsKey('volume')
            ? json_['volume'] as core.String
            : null,
      );