WebhookDetails.fromJson constructor

WebhookDetails.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory WebhookDetails.fromJson(Map<String, Object?> json) {
  return WebhookDetails(
    events: (json[r'events'] as List<Object?>?)
            ?.map((i) => WebhookDetailsEvents.fromValue(i as String? ?? ''))
            .toList() ??
        [],
    fieldIdsFilter: (json[r'fieldIdsFilter'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    issuePropertyKeysFilter:
        (json[r'issuePropertyKeysFilter'] as List<Object?>?)
                ?.map((i) => i as String? ?? '')
                .toList() ??
            [],
    jqlFilter: json[r'jqlFilter'] as String? ?? '',
  );
}