toModel method

Model toModel({
  1. String id = "",
  2. String userId = "",
})

Creates a Model from a Map<String, dynamic>.

Implementation

Model toModel({String id = "", String userId = ""}) => Model(
      id: id,
      userId: userId,
      data: this,
    );