ConfigMapVolumeSource.fromJson constructor
Creates a ConfigMapVolumeSource from JSON data.
Implementation
factory ConfigMapVolumeSource.fromJson(Map<String, dynamic> json) {
final tempDefaultModeJson = json['defaultMode'];
final tempItemsJson = json['items'];
final tempNameJson = json['name'];
final tempOptionalJson = json['optional'];
final int? tempDefaultMode = tempDefaultModeJson;
final List<KeyToPath>? tempItems = tempItemsJson != null
? List<dynamic>.from(tempItemsJson)
.map(
(e) => KeyToPath.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList()
: null;
final String? tempName = tempNameJson;
final bool? tempOptional = tempOptionalJson;
return ConfigMapVolumeSource(
defaultMode: tempDefaultMode,
items: tempItems,
name: tempName,
optional: tempOptional,
);
}