CloudFormationTarget.fromJson constructor

CloudFormationTarget.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CloudFormationTarget.fromJson(Map<String, dynamic> json) {
  return CloudFormationTarget(
    deploymentId: json['deploymentId'] as String?,
    lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']),
    lifecycleEvents: (json['lifecycleEvents'] as List?)
        ?.whereNotNull()
        .map((e) => LifecycleEvent.fromJson(e as Map<String, dynamic>))
        .toList(),
    resourceType: json['resourceType'] as String?,
    status: (json['status'] as String?)?.toTargetStatus(),
    targetId: json['targetId'] as String?,
    targetVersionWeight: json['targetVersionWeight'] as double?,
  );
}