EventSource.fromJson constructor
Implementation
factory EventSource.fromJson(Map<String, dynamic> json) {
return EventSource(
arn: json['Arn'] as String?,
createdBy: json['CreatedBy'] as String?,
creationTime: timeStampFromJson(json['CreationTime']),
expirationTime: timeStampFromJson(json['ExpirationTime']),
name: json['Name'] as String?,
state: (json['State'] as String?)?.toEventSourceState(),
);
}