Database.fromJson constructor

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

Implementation

factory Database.fromJson(Map<String, dynamic> json) => Database(
      wcDatabaseVersion: json["wc_database_version"],
      databasePrefix: json["database_prefix"],
      maxmindGeoipDatabase: json["maxmind_geoip_database"],
      databaseTables: DatabaseTables.fromJson(json["database_tables"]),
      databaseSize: DatabaseSize.fromJson(json["database_size"]),
    );