Costmdls.fromJson constructor

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

Implementation

factory Costmdls.fromJson(Map<String, dynamic> json) {
  return Costmdls({
    for (final entry in json.entries)
      Language.fromName(entry.key): CostModel.fromJson(entry.value)
  });
}