KernelGatewayAppSettings.fromJson constructor
KernelGatewayAppSettings.fromJson(
- Map<String, dynamic> json
)
Implementation
factory KernelGatewayAppSettings.fromJson(Map<String, dynamic> json) {
return KernelGatewayAppSettings(
customImages: (json['CustomImages'] as List?)
?.whereNotNull()
.map((e) => CustomImage.fromJson(e as Map<String, dynamic>))
.toList(),
defaultResourceSpec: json['DefaultResourceSpec'] != null
? ResourceSpec.fromJson(
json['DefaultResourceSpec'] as Map<String, dynamic>)
: null,
);
}