GetEventSelectorsResponse.fromJson constructor

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

Implementation

factory GetEventSelectorsResponse.fromJson(Map<String, dynamic> json) {
  return GetEventSelectorsResponse(
    advancedEventSelectors: (json['AdvancedEventSelectors'] as List?)
        ?.whereNotNull()
        .map((e) => AdvancedEventSelector.fromJson(e as Map<String, dynamic>))
        .toList(),
    eventSelectors: (json['EventSelectors'] as List?)
        ?.whereNotNull()
        .map((e) => EventSelector.fromJson(e as Map<String, dynamic>))
        .toList(),
    trailARN: json['TrailARN'] as String?,
  );
}