ChatMedia.fromMap constructor

ChatMedia.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ChatMedia.fromMap(Map<String, dynamic> map) {
  return ChatMedia(
    url: map['url'] as String,
    mediaType: MediaType.fromString(map['mediaType'] as String),
  );
}