Data.fromJson constructor

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

Implementation

Data.fromJson(Map<String, dynamic> json) {
  if (json['translations'] != null) {
    translations = []; //Translations>();
    json['translations'].forEach((v) {
      translations!.add(new Translations.fromJson(v));
    });
  }
}