ReadResult.fromJson constructor

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

Implementation

factory ReadResult.fromJson(Map<String, dynamic> json) {
  return ReadResult(
    base64Encoded: json.containsKey('base64Encoded')
        ? json['base64Encoded'] as bool
        : null,
    data: json['data'] as String,
    eof: json['eof'] as bool? ?? false,
  );
}