CowpayResponseModel<T>.fromJson constructor

CowpayResponseModel<T>.fromJson(
  1. Map<String, dynamic> json,
  2. T responseFromMap(
    1. dynamic map
    )?
)

Implementation

CowpayResponseModel.fromJson(
  Map<String, dynamic> json,
  T Function(dynamic map)? responseFromMap,
) {
  statusCode = json['statusCode'];
  operationStatus = json['operationStatus'];
  operationMessage = json['operationMessage'];
  data = responseFromMap!(json['data']);
}