GetRepositoryTriggersOutput.fromJson constructor

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

Implementation

factory GetRepositoryTriggersOutput.fromJson(Map<String, dynamic> json) {
  return GetRepositoryTriggersOutput(
    configurationId: json['configurationId'] as String?,
    triggers: (json['triggers'] as List?)
        ?.whereNotNull()
        .map((e) => RepositoryTrigger.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}