BeginFrameResult.fromJson constructor
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,
);
}