Message constructor

Message({
  1. int? vendor,
  2. int? version,
  3. int? seqnum,
  4. Int64? uid,
  5. int? flag,
  6. Int64? time,
  7. int? lang,
  8. int? starttime,
  9. int? offtime,
  10. Iterable<Word>? words,
  11. bool? endOfSegment,
  12. int? durationMs,
  13. String? dataType,
  14. Iterable<Translation>? trans,
  15. String? culture,
  16. Int64? textTs,
})

Implementation

factory Message({
  $core.int? vendor,
  $core.int? version,
  $core.int? seqnum,
  $fixnum.Int64? uid,
  $core.int? flag,
  $fixnum.Int64? time,
  $core.int? lang,
  $core.int? starttime,
  $core.int? offtime,
  $core.Iterable<Word>? words,
  $core.bool? endOfSegment,
  $core.int? durationMs,
  $core.String? dataType,
  $core.Iterable<Translation>? trans,
  $core.String? culture,
  $fixnum.Int64? textTs,
}) {
  final $result = create();
  if (vendor != null) {
    $result.vendor = vendor;
  }
  if (version != null) {
    $result.version = version;
  }
  if (seqnum != null) {
    $result.seqnum = seqnum;
  }
  if (uid != null) {
    $result.uid = uid;
  }
  if (flag != null) {
    $result.flag = flag;
  }
  if (time != null) {
    $result.time = time;
  }
  if (lang != null) {
    $result.lang = lang;
  }
  if (starttime != null) {
    $result.starttime = starttime;
  }
  if (offtime != null) {
    $result.offtime = offtime;
  }
  if (words != null) {
    $result.words.addAll(words);
  }
  if (endOfSegment != null) {
    $result.endOfSegment = endOfSegment;
  }
  if (durationMs != null) {
    $result.durationMs = durationMs;
  }
  if (dataType != null) {
    $result.dataType = dataType;
  }
  if (trans != null) {
    $result.trans.addAll(trans);
  }
  if (culture != null) {
    $result.culture = culture;
  }
  if (textTs != null) {
    $result.textTs = textTs;
  }
  return $result;
}