ApiException.fromMap constructor

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

Implementation

factory ApiException.fromMap(Map<String, dynamic> map) {
  return ApiException(
    map['code'] as int,
    map['message'] as String,
    data: (map['data'] as Map<String, dynamic>? ?? {}),
  );
}