requestPlatform method
Implementation
Future<PlatformResult> requestPlatform(RequestPlatformParams params) async {
matterPrint("$runtimeType requestPlatform -> $params");
final result = await methodChannel.invokeMethod(params.methodName, params.methodParamsJson);
assert(result is String);
final decodeResult = jsonDecode(result);
assert(decodeResult['code'] is int);
assert(decodeResult['jsonData'] is Map);
matterPrint('$runtimeType requestPlatform ${params.methodName} <- $decodeResult');
return PlatformResult(code: decodeResult['code'], jsonData: decodeResult['jsonData'].cast<String, dynamic>());
}