AssociationExecutionTarget.fromJson constructor

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

Implementation

factory AssociationExecutionTarget.fromJson(Map<String, dynamic> json) {
  return AssociationExecutionTarget(
    associationId: json['AssociationId'] as String?,
    associationVersion: json['AssociationVersion'] as String?,
    detailedStatus: json['DetailedStatus'] as String?,
    executionId: json['ExecutionId'] as String?,
    lastExecutionDate: timeStampFromJson(json['LastExecutionDate']),
    outputSource: json['OutputSource'] != null
        ? OutputSource.fromJson(json['OutputSource'] as Map<String, dynamic>)
        : null,
    resourceId: json['ResourceId'] as String?,
    resourceType: json['ResourceType'] as String?,
    status: json['Status'] as String?,
  );
}