SiteInfo.fromJson constructor

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

Implementation

SiteInfo.fromJson(Map<String, dynamic> json) {
  address = json['address'];
  addressShort = json['address_short'];
  if (json.containsKey('auth_key')) authKey = json['auth_key'];
  authAddress = json['auth_address'];
  certUserId = json['cert_user_id'];
  settings =
      json['settings'] != null ? Settings.fromJson(json['settings']) : null;
  contentUpdated = json['content_updated'];
  badFiles = json['bad_files'];
  sizeLimit = json['size_limit'];
  nextSizeLimit = json['next_size_limit'];
  peers = json['peers'];
  startedTaskNum = json['started_task_num'];
  tasks = json['tasks'];
  workers = json['workers'];
  content = json['content'] != null
      ? Content.fromJson(
          json['content'],
        )
      : null;
  feedFollowNum = json['feed_follow_num'];
}