DatabaseTables.fromJson constructor

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

Implementation

factory DatabaseTables.fromJson(Map<String, dynamic> json) => DatabaseTables(
      woocommerce: Map.from(json["woocommerce"])
          .map((k, v) => MapEntry<String, Other>(k, Other.fromJson(v))),
      other: Map.from(json["other"])
          .map((k, v) => MapEntry<String, Other>(k, Other.fromJson(v))),
    );