LambdaTarget.fromJson constructor
LambdaTarget.fromJson(
- Map<String, dynamic> json
)
Implementation
factory LambdaTarget.fromJson(Map<String, dynamic> json) {
return LambdaTarget(
deploymentId: json['deploymentId'] as String?,
lambdaFunctionInfo: json['lambdaFunctionInfo'] != null
? LambdaFunctionInfo.fromJson(
json['lambdaFunctionInfo'] as Map<String, dynamic>)
: null,
lastUpdatedAt: timeStampFromJson(json['lastUpdatedAt']),
lifecycleEvents: (json['lifecycleEvents'] as List?)
?.whereNotNull()
.map((e) => LifecycleEvent.fromJson(e as Map<String, dynamic>))
.toList(),
status: (json['status'] as String?)?.toTargetStatus(),
targetArn: json['targetArn'] as String?,
targetId: json['targetId'] as String?,
);
}