Model.from constructor

Model.from(
  1. BaseModel? other
)

Implementation

factory Model.from(BaseModel? other) {
  return Model(other?.toJson() ?? {});
}