ToMaterial constructor

  1. @JsonSerializable.new(explicitToJson: true, fieldRename: FieldRename.snake, includeIfNull: false, converters: [NullToEmptyStringConverter()])
const ToMaterial({
  1. required String material,
  2. @ToTextListConverter() @Default.new([]) List<ToText> toText,
})

Implementation

@JsonSerializable(
  explicitToJson: true,
  fieldRename: FieldRename.snake,
  includeIfNull: false,
  converters: [NullToEmptyStringConverter()],
)
const factory ToMaterial({
  required String material,
  @ToTextListConverter()
  @Default([])
  final List<ToText> toText,
}) = _ToMaterial;