EventCategoryGroup.fromJson constructor

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

Implementation

factory EventCategoryGroup.fromJson(Map<String, dynamic> json) {
  return EventCategoryGroup(
    eventCategories: (json['EventCategories'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    sourceType: json['SourceType'] as String?,
  );
}