PrintToPDFResult.fromJson constructor

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

Implementation

factory PrintToPDFResult.fromJson(Map<String, dynamic> json) {
  return PrintToPDFResult(
    data: json['data'] as String,
    stream: json.containsKey('stream')
        ? io.StreamHandle.fromJson(json['stream'] as String)
        : null,
  );
}