Screenshot.fromJson constructor

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

Implementation

factory Screenshot.fromJson(Map<String, dynamic> json) {
  return Screenshot(
    image: ImageResource.fromJson(json['image'] as Map<String, dynamic>),
    formFactor: json['formFactor'] as String,
    label: json.containsKey('label') ? json['label'] as String : null,
  );
}