BookMetadata constructor

BookMetadata({
  1. Barcode? iSBN13,
  2. StringValue? title,
  3. StringValue? subTitle,
  4. StringValue? description,
  5. Iterable<StringValue>? authors,
  6. StringValue? publisher,
  7. Int32Value? publishingYear,
  8. Int32Value? pages,
  9. StringValue? language,
  10. Int32Value? estimatedThicknessInMM,
  11. StringValue? type,
  12. StringValue? languageIso,
  13. StringValue? summary,
  14. Iterable<StringValue>? reviews,
  15. Int32Value? conditionPct,
  16. StringValue? conditionDescription,
  17. StringValue? genre,
  18. StringValue? category,
  19. StringValue? edition,
})

Implementation

factory BookMetadata({
  $2.Barcode? iSBN13,
  $1.StringValue? title,
  $1.StringValue? subTitle,
  $1.StringValue? description,
  $core.Iterable<$1.StringValue>? authors,
  $1.StringValue? publisher,
  $1.Int32Value? publishingYear,
  $1.Int32Value? pages,
  $1.StringValue? language,
  $1.Int32Value? estimatedThicknessInMM,
  $1.StringValue? type,
  $1.StringValue? languageIso,
  $1.StringValue? summary,
  $core.Iterable<$1.StringValue>? reviews,
  $1.Int32Value? conditionPct,
  $1.StringValue? conditionDescription,
  $1.StringValue? genre,
  $1.StringValue? category,
  $1.StringValue? edition,
}) {
  final result = create();
  if (iSBN13 != null) result.iSBN13 = iSBN13;
  if (title != null) result.title = title;
  if (subTitle != null) result.subTitle = subTitle;
  if (description != null) result.description = description;
  if (authors != null) result.authors.addAll(authors);
  if (publisher != null) result.publisher = publisher;
  if (publishingYear != null) result.publishingYear = publishingYear;
  if (pages != null) result.pages = pages;
  if (language != null) result.language = language;
  if (estimatedThicknessInMM != null)
    result.estimatedThicknessInMM = estimatedThicknessInMM;
  if (type != null) result.type = type;
  if (languageIso != null) result.languageIso = languageIso;
  if (summary != null) result.summary = summary;
  if (reviews != null) result.reviews.addAll(reviews);
  if (conditionPct != null) result.conditionPct = conditionPct;
  if (conditionDescription != null)
    result.conditionDescription = conditionDescription;
  if (genre != null) result.genre = genre;
  if (category != null) result.category = category;
  if (edition != null) result.edition = edition;
  return result;
}