TestPlatform.nativeFromJson constructor
Creates a TestPlatform with a TestNativePlatform created from JSON.
A new TestNativePlatform is created using TestNativePlatform.fromJson
with nativePlatformJson as argument, and a new TestPlatform is created
with that native platform as Platform.nativePlatform.
Equivalent to:
TestPlatform.fromNative(TestNativePlatform.fromJson(nativePlatformJson))
Implementation
@visibleForTesting
TestPlatform.nativeFromJson(String nativePlatformJson)
: this._native(TestNativePlatform.fromJson(nativePlatformJson));