asMap property

Map<String, dynamic> asMap

Returns the current instance as a Map.

Implementation

Map<String, dynamic> get asMap {
  return <String, dynamic>{
    'code': code,
    'message': message,
    'details': details
  };
}