ScreenshotAnswer.fromJson constructor

ScreenshotAnswer.fromJson(
  1. 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,
  );
}