Content.fromJson constructor
Content.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Content.fromJson(Map<String, dynamic> json) {
return Content(
embed: json['embed'] ?? false,
iframe: json['iframe'] ?? false,
object: json['object'] ?? false,
script: json['script'] ?? false,
shortUrls: json['shortUrls'] ?? false,
textSize: json['textSize'] ?? 0,
totalSize: json['totalSize'] ?? 0,
missingAlt: json['missingAlt'] ?? false,
missingListUnsubscribe: json['missingListUnsubscribe'] ?? false,
);
}