Webhook.fromJson constructor
Implementation
factory Webhook.fromJson(Map<String, Object?> json) {
return Webhook(
events: (json[r'events'] as List<Object?>?)
?.map((i) => WebhookEvents.fromValue(i as String? ?? ''))
.toList() ??
[],
expirationDate: (json[r'expirationDate'] as num?)?.toInt(),
fieldIdsFilter: (json[r'fieldIdsFilter'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
id: (json[r'id'] as num?)?.toInt() ?? 0,
issuePropertyKeysFilter:
(json[r'issuePropertyKeysFilter'] as List<Object?>?)
?.map((i) => i as String? ?? '')
.toList() ??
[],
jqlFilter: json[r'jqlFilter'] as String? ?? '',
);
}