EventParameters.fromJson constructor

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

Implementation

factory EventParameters.fromJson(Map<String, dynamic> json) {
  return EventParameters(
    descriptionRegex: json['DescriptionRegex'] as String,
    eventType: (json['EventType'] as String).toEventTypeValues(),
    snapshotOwner: (json['SnapshotOwner'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}