EventSource.fromJson constructor
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,
);
}