errorBody property

Map<String, dynamic> get errorBody

Implementation

Map<String, dynamic> get errorBody => {
      'location': location.name,
      if (errors != null)
        'errors': errors!.entries.map((e) => '${e.key}: ${e.value}').toList(),
      if (message.isNotEmpty) 'errors': [message],
    };