FeatureSet constructor

FeatureSet({
  1. FeatureSet_FieldPresence? fieldPresence,
  2. FeatureSet_EnumType? enumType,
  3. FeatureSet_RepeatedFieldEncoding? repeatedFieldEncoding,
  4. FeatureSet_Utf8Validation? utf8Validation,
  5. FeatureSet_MessageEncoding? messageEncoding,
  6. FeatureSet_JsonFormat? jsonFormat,
})

Implementation

factory FeatureSet({
  FeatureSet_FieldPresence? fieldPresence,
  FeatureSet_EnumType? enumType,
  FeatureSet_RepeatedFieldEncoding? repeatedFieldEncoding,
  FeatureSet_Utf8Validation? utf8Validation,
  FeatureSet_MessageEncoding? messageEncoding,
  FeatureSet_JsonFormat? jsonFormat,
}) {
  final $result = create();
  if (fieldPresence != null) {
    $result.fieldPresence = fieldPresence;
  }
  if (enumType != null) {
    $result.enumType = enumType;
  }
  if (repeatedFieldEncoding != null) {
    $result.repeatedFieldEncoding = repeatedFieldEncoding;
  }
  if (utf8Validation != null) {
    $result.utf8Validation = utf8Validation;
  }
  if (messageEncoding != null) {
    $result.messageEncoding = messageEncoding;
  }
  if (jsonFormat != null) {
    $result.jsonFormat = jsonFormat;
  }
  return $result;
}