ResponseModel.fromJson constructor

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

Implementation

factory ResponseModel.fromJson(Map<String, dynamic> json) => ResponseModel(
      message: json['message'],
      qrCodeUrl: json['data']['qr_code_url'],
      favoured: json['data']['favoured'],
      externalReference: json['data']['external_reference'],
      checkout: json['data']['checkout'],
      pixKey: json['data']['pix_key'],
    );