Map<String, dynamic> toModelOutput() => { 'status': status, if (data != null) 'data': data, if (error != null) 'error': error, };