NativeScriptScriptAny.fromJson constructor

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

Implementation

factory NativeScriptScriptAny.fromJson(Map<String, dynamic> json) {
  return NativeScriptScriptAny(((json["native_scripts"] ??
          json["script_any"]["native_scripts"]) as List)
      .map((e) => NativeScript.fromJson(e))
      .toList());
}