Content.fromJson constructor

Content.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Content.fromJson(Map<String, dynamic> json) {
  address = json['address'];
  backgroundColor = json['background-color'];
  backgroundColorDark = json['background-color-dark'];
  description = json['description'];
  files = json['files'];
  ignore = json['ignore'];
  innerPath = json['inner_path'];
  modified = json['modified'];
  postmessageNonceSecurity = json['postmessage_nonce_security'];
  signsRequired = json['signs_required'];
  title = json['title'];
  translate = json['translate']?.cast<String>();
  viewport = json['viewport'];
  zeronetVersion = json['zeronet_version'];
  filesOptional = json['files_optional'];
  includes = json['includes'];
}