ResponseBodyApi<T>.fromMap constructor

ResponseBodyApi<T>.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ResponseBodyApi.fromMap(Map<String, dynamic> map) {

  return ResponseBodyApi<T>(
    success: map['success'],
    code: map['code'],
    message: map['message'],
    data: map['data'],
  );
}