BatchGetTriggersResponse.fromJson constructor

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

Implementation

factory BatchGetTriggersResponse.fromJson(Map<String, dynamic> json) {
  return BatchGetTriggersResponse(
    triggers: (json['Triggers'] as List?)
        ?.whereNotNull()
        .map((e) => Trigger.fromJson(e as Map<String, dynamic>))
        .toList(),
    triggersNotFound: (json['TriggersNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}