ScreenshotAnswer.fromJson constructor
ScreenshotAnswer.fromJson(
- String json
Implementation
factory ScreenshotAnswer.fromJson(String json) {
final Map<String, dynamic> jsonObject = jsonDecode(json);
return ScreenshotAnswer(
hash: jsonObject['hash'] ?? 0,
isAvailable: jsonObject['isAvailable'] ?? false,
);
}