NativeScriptScriptAll.fromJson constructor

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

Implementation

factory NativeScriptScriptAll.fromJson(Map<String, dynamic> json) {
  final correctJson = json[NativeScriptType.scriptAll.name] ?? json;
  return NativeScriptScriptAll((correctJson['native_scripts'] as List)
      .map((e) => NativeScript.fromJson(e))
      .toList());
}