DataModel.fromJson constructor

DataModel.fromJson(
  1. Map json
)

Implementation

factory DataModel.fromJson(Map json) {
  return DataModel(
    models: (json['models'] as Iterable).map((e) => Model.fromJson(e)),
    enums: (json['enums'] as Iterable).map((e) => DatamodelEnum.fromJson(e)),
    types: (json['types'] as Iterable).map((e) => Model.fromJson(e)),
  );
}