WebhookResponse.fromMap constructor
response from paymongo webhook API
Implementation
factory WebhookResponse.fromMap(Map<String, dynamic> map) {
return WebhookResponse(
id: map['id'] ?? '',
type: map['type'] ?? '',
attributes: WebhookResponseAttribute.fromMap(map['attributes']),
);
}