FirmwareProto constructor

FirmwareProto({
  1. Int64? id,
  2. String? crc,
  3. String? version,
  4. Int64? fileSize,
  5. String? link,
  6. bool? enabled,
  7. Iterable<String>? uids,
  8. Timestamp? createdDate,
  9. Timestamp? updatedDate,
  10. Iterable<String>? fromCrcs,
})

Implementation

factory FirmwareProto({
  $fixnum.Int64? id,
  $core.String? crc,
  $core.String? version,
  $fixnum.Int64? fileSize,
  $core.String? link,
  $core.bool? enabled,
  $core.Iterable<$core.String>? uids,
  $1.Timestamp? createdDate,
  $1.Timestamp? updatedDate,
  $core.Iterable<$core.String>? fromCrcs,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (crc != null) result.crc = crc;
  if (version != null) result.version = version;
  if (fileSize != null) result.fileSize = fileSize;
  if (link != null) result.link = link;
  if (enabled != null) result.enabled = enabled;
  if (uids != null) result.uids.addAll(uids);
  if (createdDate != null) result.createdDate = createdDate;
  if (updatedDate != null) result.updatedDate = updatedDate;
  if (fromCrcs != null) result.fromCrcs.addAll(fromCrcs);
  return result;
}