Deployment.fromJson constructor
Deployment.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Deployment.fromJson(Map<String, dynamic> json) {
return Deployment(
appId: json['AppId'] as String?,
command: json['Command'] != null
? DeploymentCommand.fromJson(json['Command'] as Map<String, dynamic>)
: null,
comment: json['Comment'] as String?,
completedAt: json['CompletedAt'] as String?,
createdAt: json['CreatedAt'] as String?,
customJson: json['CustomJson'] as String?,
deploymentId: json['DeploymentId'] as String?,
duration: json['Duration'] as int?,
iamUserArn: json['IamUserArn'] as String?,
instanceIds: (json['InstanceIds'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
stackId: json['StackId'] as String?,
status: json['Status'] as String?,
);
}