MaskPoint.fromJson constructor
a MaskPoint return type can be :
Implementation
factory MaskPoint.fromJson(Map<String, dynamic> json) {
switch(json["@type"]) {
case MaskPointForehead.CONSTRUCTOR:
return MaskPointForehead.fromJson(json);
case MaskPointEyes.CONSTRUCTOR:
return MaskPointEyes.fromJson(json);
case MaskPointMouth.CONSTRUCTOR:
return MaskPointMouth.fromJson(json);
case MaskPointChin.CONSTRUCTOR:
return MaskPointChin.fromJson(json);
default:
return const MaskPoint();
}
}