toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (genreId != null) {
    _json[r'GenreId'] = genreId;
  } else {
    _json[r'GenreId'] = null;
  }
  if (genre != null) {
    _json[r'Genre'] = genre;
  } else {
    _json[r'Genre'] = null;
  }
  if (selectionId != null) {
    _json[r'SelectionId'] = selectionId;
  } else {
    _json[r'SelectionId'] = null;
  }
  if (selection != null) {
    _json[r'Selection'] = selection;
  } else {
    _json[r'Selection'] = null;
  }
  return _json;
}