RestSerializable constructor

const RestSerializable({
  1. String? endpoint,
  2. FieldRename? fieldRename,
  3. String? fromKey,
  4. bool? nullable,
  5. 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;