ToMaterial constructor
- @JsonSerializable.new(explicitToJson: true, fieldRename: FieldRename.snake, includeIfNull: false, converters: [NullToEmptyStringConverter()])
const
ToMaterial(
{ - required String material,
- @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;