EventSource.fromJson constructor

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

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(),
  );
}