CreateApplicationVersionResponse.fromJson constructor
CreateApplicationVersionResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CreateApplicationVersionResponse.fromJson(Map<String, dynamic> json) {
return CreateApplicationVersionResponse(
applicationId: json['applicationId'] as String?,
creationTime: json['creationTime'] as String?,
parameterDefinitions: (json['parameterDefinitions'] as List?)
?.whereNotNull()
.map((e) => ParameterDefinition.fromJson(e as Map<String, dynamic>))
.toList(),
requiredCapabilities: (json['requiredCapabilities'] as List?)
?.whereNotNull()
.map((e) => (e as String).toCapability())
.toList(),
resourcesSupported: json['resourcesSupported'] as bool?,
semanticVersion: json['semanticVersion'] as String?,
sourceCodeArchiveUrl: json['sourceCodeArchiveUrl'] as String?,
sourceCodeUrl: json['sourceCodeUrl'] as String?,
templateUrl: json['templateUrl'] as String?,
);
}