toMap method

Map<String, dynamic> toMap([
  1. dynamic request
])

Implementation

Map<String, dynamic> toMap([dynamic request]) {
  return {
    'code': code,
    'message': message,
    'data': data is Map ? {'request': request, ...data} : data,
  };
}