CSIStorageCapacityList.fromJson constructor

CSIStorageCapacityList.fromJson(
  1. Map<String, dynamic> json
)

Creates a CSIStorageCapacityList from JSON data.

Implementation

CSIStorageCapacityList.fromJson(Map<String, dynamic> json)
    : this(
        apiVersion: json['apiVersion'],
        items: json['items'] != null
            ? CSIStorageCapacity.listFromJson(
                (json['items'] as Iterable).cast<Map<String, dynamic>>())
            : [],
        kind: json['kind'],
        metadata: json['metadata'] != null
            ? ListMeta.fromJson(json['metadata'])
            : null,
      );