Environment.fromJson constructor

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

Implementation

factory Environment.fromJson(Map<String, dynamic> json) => Environment(
      homeUrl: json["home_url"],
      siteUrl: json["site_url"],
      version: json["version"],
      logDirectory: json["log_directory"],
      logDirectoryWritable: json["log_directory_writable"],
      wpVersion: json["wp_version"],
      wpMultisite: json["wp_multisite"],
      wpMemoryLimit: json["wp_memory_limit"],
      wpDebugMode: json["wp_debug_mode"],
      wpCron: json["wp_cron"],
      language: json["language"],
      externalObjectCache: json["external_object_cache"],
      serverInfo: json["server_info"],
      phpVersion: json["php_version"],
      phpPostMaxSize: json["php_post_max_size"],
      phpMaxExecutionTime: json["php_max_execution_time"],
      phpMaxInputVars: json["php_max_input_vars"],
      curlVersion: json["curl_version"],
      suhosinInstalled: json["suhosin_installed"],
      maxUploadSize: json["max_upload_size"],
      mysqlVersion: json["mysql_version"],
      mysqlVersionString: json["mysql_version_string"],
      defaultTimezone: json["default_timezone"],
      fsockopenOrCurlEnabled: json["fsockopen_or_curl_enabled"],
      soapclientEnabled: json["soapclient_enabled"],
      domdocumentEnabled: json["domdocument_enabled"],
      gzipEnabled: json["gzip_enabled"],
      mbstringEnabled: json["mbstring_enabled"],
      remotePostSuccessful: json["remote_post_successful"],
      remotePostResponse: json["remote_post_response"],
      remoteGetSuccessful: json["remote_get_successful"],
      remoteGetResponse: json["remote_get_response"],
    );