toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (id != null) {
    _json[r'id'] = id;
  }
  if (token != null) {
    _json[r'token'] = token;
  }
  if (userId != null) {
    _json[r'user_id'] = userId;
  }
  if (description != null) {
    _json[r'description'] = description;
  }
  return _json;
}