toJson method

  1. @override
Map<String, Object> toJson()
override

Returns the JSON representation.

Implementation

@override
Map<String, Object> toJson() => {
      'errors': errors,
      if (meta.isNotEmpty) 'meta': meta,
    };