EventSource.fromJson constructor

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

Implementation

factory EventSource.fromJson(Map<String, dynamic> json) {
  return EventSource(
    type: (json['Type'] as String).toEventSourceValues(),
    parameters: json['Parameters'] != null
        ? EventParameters.fromJson(json['Parameters'] as Map<String, dynamic>)
        : null,
  );
}