RestSerializable constructor
const
RestSerializable({
- String? endpoint,
- FieldRename? fieldRename,
- String? fromKey,
- bool? nullable,
- String? toKey,
Creates a new RestSerializable instance.
Implementation
const RestSerializable({
this.endpoint,
FieldRename? fieldRename,
this.fromKey,
bool? nullable,
this.toKey,
}) : fieldRename = fieldRename ?? FieldRename.snake,
nullable = nullable ?? false;