toJson method

Map<String, Object?> toJson()

JSON-like representation for debug tools and platform smoke tests.

Implementation

Map<String, Object?> toJson() {
  return <String, Object?>{
    'platform': platform,
    'isWeb': isWeb,
    'isSupportedPlatform': isSupportedPlatform,
    'passed': passed,
    'checks': checks
        .map((PixaRuntimePlatformCheck check) => check.toJson())
        .toList(growable: false),
  };
}