Event.fromJson constructor
Implementation
factory Event.fromJson(Map<String, dynamic> json) {
return Event(
accessKeyId: json['AccessKeyId'] as String?,
cloudTrailEvent: json['CloudTrailEvent'] as String?,
eventId: json['EventId'] as String?,
eventName: json['EventName'] as String?,
eventSource: json['EventSource'] as String?,
eventTime: timeStampFromJson(json['EventTime']),
readOnly: json['ReadOnly'] as String?,
resources: (json['Resources'] as List?)
?.whereNotNull()
.map((e) => Resource.fromJson(e as Map<String, dynamic>))
.toList(),
username: json['Username'] as String?,
);
}