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