MessageAttachment.fromJSON constructor

MessageAttachment.fromJSON(
  1. Map<String, dynamic> data
)

Implementation

factory MessageAttachment.fromJSON(Map<String, dynamic> data) {
	return MessageAttachment(
		type: data["type"] == null ? null : DocumentLocation.fromJSON(data["type"]),
		ids: (data["ids"] as List<dynamic>).map((x0) => (x0 as String) ).toList()
	);
}