PrinterModel constructor

PrinterModel({
  1. String? modelId,
  2. String? brand,
  3. String? modelName,
  4. PrintType? printType,
  5. PrintCommandFormat? printCommandFormat,
  6. String? imageUrl,
})

Implementation

factory PrinterModel({
  $core.String? modelId,
  $core.String? brand,
  $core.String? modelName,
  PrintType? printType,
  PrintCommandFormat? printCommandFormat,
  $core.String? imageUrl,
}) {
  final $result = create();
  if (modelId != null) {
    $result.modelId = modelId;
  }
  if (brand != null) {
    $result.brand = brand;
  }
  if (modelName != null) {
    $result.modelName = modelName;
  }
  if (printType != null) {
    $result.printType = printType;
  }
  if (printCommandFormat != null) {
    $result.printCommandFormat = printCommandFormat;
  }
  if (imageUrl != null) {
    $result.imageUrl = imageUrl;
  }
  return $result;
}