toMap method

Map<String, dynamic> toMap()

Map representation of HttpEvent.

Implementation

Map<String, dynamic> toMap() {
  return {
    'success': success,
    'status': status,
    'responseText': (responseText.length > 100)
        ? (responseText.substring(0, 100) + '...')
        : responseText
  };
}