GenericModel.fromModel constructor

GenericModel.fromModel(
  1. Model model
)

Implementation

GenericModel.fromModel(super.model) :
  data = model.data[_dataKey],
  createdAt = DateTime.parse(model.data[_createdAtKey].toString()),
  super.fromModel();