fromJson static method
Implementation
static StoneContentprint fromJson(Map<String, dynamic> json) {
return StoneContentprint(
type: StonePrintType.values.firstWhere((e) => e.name == json['type']),
content: json['content'],
align: json['align'] != null ? StonePrintAlign.values.firstWhere((e) => e.name == json['align']) : null,
size: json['size'] != null ? StonePrintSize.values.firstWhere((e) => e.name == json['size']) : null,
imagePath: json['imagePath'],
);
}