CreateAppResponse.fromJson constructor
CreateAppResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CreateAppResponse.fromJson(Map<String, dynamic> json) {
return CreateAppResponse(
appSummary: json['appSummary'] != null
? AppSummary.fromJson(json['appSummary'] as Map<String, dynamic>)
: null,
serverGroups: (json['serverGroups'] as List?)
?.whereNotNull()
.map((e) => ServerGroup.fromJson(e as Map<String, dynamic>))
.toList(),
tags: (json['tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}