toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (copyRightOwnerId != null) {
    _json[r'CopyRightOwnerId'] = copyRightOwnerId;
  } else {
    _json[r'CopyRightOwnerId'] = null;
  }
    _json[r'Name'] = name;
  if (price != null) {
    _json[r'Price'] = price;
  } else {
    _json[r'Price'] = null;
  }
  if (image != null) {
    _json[r'Image'] = image;
  } else {
    _json[r'Image'] = null;
  }
    _json[r'Slug'] = slug;
  if (container != null) {
    _json[r'Container'] = container;
  } else {
    _json[r'Container'] = null;
  }
  if (language != null) {
    _json[r'Language'] = language;
  } else {
    _json[r'Language'] = null;
  }
  if (createDate != null) {
    _json[r'CreateDate'] = createDate!.toUtc().toIso8601String();
  } else {
    _json[r'CreateDate'] = null;
  }
  if (changeDate != null) {
    _json[r'ChangeDate'] = changeDate!.toUtc().toIso8601String();
  } else {
    _json[r'ChangeDate'] = null;
  }
  if (tracks != null) {
    _json[r'Tracks'] = tracks;
  } else {
    _json[r'Tracks'] = null;
  }
  if (applicationUsers != null) {
    _json[r'ApplicationUsers'] = applicationUsers;
  } else {
    _json[r'ApplicationUsers'] = null;
  }
  return _json;
}