Attachment.fromJson constructor

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

Implementation

factory Attachment.fromJson(Map<String, dynamic> json) {
  return Attachment(
    data: _s.decodeNullableUint8List(json['data'] as String?),
    fileName: json['fileName'] as String?,
  );
}