toModel method
Creates a Model from a Map<String, dynamic>.
Implementation
Model toModel({String id = "", String userId = ""}) => Model(
id: id,
userId: userId,
data: this,
);
Creates a Model from a Map<String, dynamic>.
Model toModel({String id = "", String userId = ""}) => Model(
id: id,
userId: userId,
data: this,
);