fromJson static method

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

Implementation

static TransactionStatus fromJson(Map<String, dynamic> json) {
  return new TransactionStatus(
    code: json['code'] as int,
    status: json['status'] as String,
    message: json['message'] as String,
    data: json['data'] != null ? new Transaction.fromJson(json['data']) : null
  );
}