decode static method

PerFrameRenderingStatistics decode(
  1. Object result
)

Implementation

static PerFrameRenderingStatistics decode(Object result) {
  result as List<Object?>;
  return PerFrameRenderingStatistics(
    topRenderGroups: (result[0] as List<Object?>?)!
        .cast<GroupPerformanceStatistics>(),
    topRenderLayers: (result[1] as List<Object?>?)!
        .cast<GroupPerformanceStatistics>(),
    shadowMapDurationStatistics: result[2]! as DurationStatistics,
    uploadDurationStatistics: result[3]! as DurationStatistics,
  );
}