toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (data != null) {
    _json[r'data'] = data;
  }
  if (err != null) {
    _json[r'err'] = err;
  }
  return _json;
}