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