XMediaItem.fromJson constructor
Implementation
factory XMediaItem.fromJson(Map<String, dynamic> jsonData) {
return XMediaItem(
jsonData['id_'],
blobURL: jsonData['blobURL_'],
hasOverlaySurface: jsonData['hasOverlaySurface_'],
localURI: jsonData['localURI_'],
mediaType: int.tryParse(jsonData['mediaType_'].toString()),
miniatura: (jsonData['miniatura_'] == null ? null : base64.decode(jsonData['miniatura_'])),
overlaySurface: (jsonData['overlaySurface_'] == null ? null : base64.decode(jsonData['overlaySurface_'])),
payload: (jsonData['payload_'] == null ? null : base64.decode(jsonData['payload_'])),
visPos: int.tryParse(jsonData['visPos_'].toString()),
xDocID: jsonData['xDocID_'],
xDocID_resolved: jsonData['xDocID_resolved'],
xDocType: jsonData['xDocType_'],
);
}