WebhookResponse.fromMap constructor

WebhookResponse.fromMap(
  1. Map<String, dynamic> map
)

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']),
  );
}