JobResource.fromJson constructor
JobResource.fromJson(
- Map<String, dynamic> json
)
Implementation
factory JobResource.fromJson(Map<String, dynamic> json) {
return JobResource(
ec2AmiResources: (json['Ec2AmiResources'] as List?)
?.whereNotNull()
.map((e) => Ec2AmiResource.fromJson(e as Map<String, dynamic>))
.toList(),
lambdaResources: (json['LambdaResources'] as List?)
?.whereNotNull()
.map((e) => LambdaResource.fromJson(e as Map<String, dynamic>))
.toList(),
s3Resources: (json['S3Resources'] as List?)
?.whereNotNull()
.map((e) => S3Resource.fromJson(e as Map<String, dynamic>))
.toList(),
);
}