FileAttachment.fromJson constructor

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

Implementation

factory FileAttachment.fromJson(Map<String, dynamic> json) {
  return FileAttachment(
    payload: MediaPayload.fromJson(json['payload'] as Map<String, dynamic>),
    filename: json['filename'] as String,
    size: json['size'] as int,
  );
}