DataResponseCheckout.fromJson constructor

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

Implementation

factory DataResponseCheckout.fromJson(Map<String, dynamic> json) {
  return DataResponseCheckout(
    code: json['code'] ?? '',
    message: json['message'] ?? '',
    messageKh: json['message_kh'] ?? '',
    data: json['data'] != null ? Data.fromJson(json['data']) : null,
  );
}