fromMap method

PaymentResponse fromMap (
  1. Map map
)

Implementation

static PaymentResponse fromMap(Map<dynamic, dynamic> map) {
  return new PaymentResponse(
      map['isSuccess'],
      map['status'] != null ? int.parse(map['status'].toString()) : null,
      map['token'] != null ? map['token'] as String : null,
      map['phonenumber'] != null ? map['phonenumber'] as String : null,
      map['message'] != null ? map['message'] as String : null,
      map['data'] != null ? map['data'] as String : null,
      map['extra'] != null ? map['extra'] as String : null);
}