AffectedEntity.fromJson constructor

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

Implementation

factory AffectedEntity.fromJson(Map<String, dynamic> json) {
  return AffectedEntity(
    awsAccountId: json['awsAccountId'] as String?,
    entityArn: json['entityArn'] as String?,
    entityUrl: json['entityUrl'] as String?,
    entityValue: json['entityValue'] as String?,
    eventArn: json['eventArn'] as String?,
    lastUpdatedTime: timeStampFromJson(json['lastUpdatedTime']),
    statusCode: (json['statusCode'] as String?)?.toEntityStatusCode(),
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}