BeginFrameResult.fromJson constructor

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

Implementation

factory BeginFrameResult.fromJson(Map<String, dynamic> json) {
  return BeginFrameResult(
    hasDamage: json['hasDamage'] as bool? ?? false,
    screenshotData: json.containsKey('screenshotData')
        ? json['screenshotData'] as String
        : null,
  );
}