ConfigMap.fromJson constructor
Creates a ConfigMap from JSON data.
Implementation
factory ConfigMap.fromJson(Map<String, dynamic> json) {
final tempApiVersionJson = json['apiVersion'];
final tempBinaryDataJson = json['binaryData'];
final tempDataJson = json['data'];
final tempImmutableJson = json['immutable'];
final tempKindJson = json['kind'];
final tempMetadataJson = json['metadata'];
final String? tempApiVersion = tempApiVersionJson;
final Map<String, String>? tempBinaryData = tempBinaryDataJson != null
? Map<String, String>.from(tempBinaryDataJson)
: null;
final Map<String, String>? tempData =
tempDataJson != null ? Map<String, String>.from(tempDataJson) : null;
final bool? tempImmutable = tempImmutableJson;
final String? tempKind = tempKindJson;
final ObjectMeta? tempMetadata =
tempMetadataJson != null ? ObjectMeta.fromJson(tempMetadataJson) : null;
return ConfigMap(
apiVersion: tempApiVersion,
binaryData: tempBinaryData,
data: tempData,
immutable: tempImmutable,
kind: tempKind,
metadata: tempMetadata,
);
}