EventType.fromJson constructor
EventType.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EventType.fromJson(Map<String, dynamic> json) {
return EventType(
arn: json['arn'] as String?,
createdTime: json['createdTime'] as String?,
description: json['description'] as String?,
entityTypes: (json['entityTypes'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
eventVariables: (json['eventVariables'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
labels: (json['labels'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
lastUpdatedTime: json['lastUpdatedTime'] as String?,
name: json['name'] as String?,
);
}