TestProto3Optional constructor

TestProto3Optional({
  1. int? optionalInt32,
  2. Int64? optionalInt64,
  3. int? optionalUint32,
  4. Int64? optionalUint64,
  5. int? optionalSint32,
  6. Int64? optionalSint64,
  7. int? optionalFixed32,
  8. Int64? optionalFixed64,
  9. int? optionalSfixed32,
  10. Int64? optionalSfixed64,
  11. double? optionalFloat,
  12. double? optionalDouble,
  13. bool? optionalBool,
  14. String? optionalString,
  15. List<int>? optionalBytes,
  16. String? optionalCord,
  17. TestProto3Optional_NestedMessage? optionalNestedMessage,
  18. TestProto3Optional_NestedMessage? lazyNestedMessage,
  19. TestProto3Optional_NestedEnum? optionalNestedEnum,
  20. int? singularInt32,
  21. Int64? singularInt64,
})

Implementation

factory TestProto3Optional({
  $core.int? optionalInt32,
  $fixnum.Int64? optionalInt64,
  $core.int? optionalUint32,
  $fixnum.Int64? optionalUint64,
  $core.int? optionalSint32,
  $fixnum.Int64? optionalSint64,
  $core.int? optionalFixed32,
  $fixnum.Int64? optionalFixed64,
  $core.int? optionalSfixed32,
  $fixnum.Int64? optionalSfixed64,
  $core.double? optionalFloat,
  $core.double? optionalDouble,
  $core.bool? optionalBool,
  $core.String? optionalString,
  $core.List<$core.int>? optionalBytes,
  $core.String? optionalCord,
  TestProto3Optional_NestedMessage? optionalNestedMessage,
  TestProto3Optional_NestedMessage? lazyNestedMessage,
  TestProto3Optional_NestedEnum? optionalNestedEnum,
  $core.int? singularInt32,
  $fixnum.Int64? singularInt64,
}) {
  final _result = create();
  if (optionalInt32 != null) {
    _result.optionalInt32 = optionalInt32;
  }
  if (optionalInt64 != null) {
    _result.optionalInt64 = optionalInt64;
  }
  if (optionalUint32 != null) {
    _result.optionalUint32 = optionalUint32;
  }
  if (optionalUint64 != null) {
    _result.optionalUint64 = optionalUint64;
  }
  if (optionalSint32 != null) {
    _result.optionalSint32 = optionalSint32;
  }
  if (optionalSint64 != null) {
    _result.optionalSint64 = optionalSint64;
  }
  if (optionalFixed32 != null) {
    _result.optionalFixed32 = optionalFixed32;
  }
  if (optionalFixed64 != null) {
    _result.optionalFixed64 = optionalFixed64;
  }
  if (optionalSfixed32 != null) {
    _result.optionalSfixed32 = optionalSfixed32;
  }
  if (optionalSfixed64 != null) {
    _result.optionalSfixed64 = optionalSfixed64;
  }
  if (optionalFloat != null) {
    _result.optionalFloat = optionalFloat;
  }
  if (optionalDouble != null) {
    _result.optionalDouble = optionalDouble;
  }
  if (optionalBool != null) {
    _result.optionalBool = optionalBool;
  }
  if (optionalString != null) {
    _result.optionalString = optionalString;
  }
  if (optionalBytes != null) {
    _result.optionalBytes = optionalBytes;
  }
  if (optionalCord != null) {
    _result.optionalCord = optionalCord;
  }
  if (optionalNestedMessage != null) {
    _result.optionalNestedMessage = optionalNestedMessage;
  }
  if (lazyNestedMessage != null) {
    _result.lazyNestedMessage = lazyNestedMessage;
  }
  if (optionalNestedEnum != null) {
    _result.optionalNestedEnum = optionalNestedEnum;
  }
  if (singularInt32 != null) {
    _result.singularInt32 = singularInt32;
  }
  if (singularInt64 != null) {
    _result.singularInt64 = singularInt64;
  }
  return _result;
}