fromJson static method
Implementation
static MaskPosition? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return MaskPosition(
point: MaskPoint.fromJson(tdMapFromJson(json['point'])),
xShift: ((json['x_shift'] as num?) ?? 0.0).toDouble(),
yShift: ((json['y_shift'] as num?) ?? 0.0).toDouble(),
scale: ((json['scale'] as num?) ?? 0.0).toDouble(),
);
}