ImageMessage.fromJson constructor

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

Creates a new instance of ImageMessage from a JSON map.

json is the JSON map to create the instance from.

Implementation

factory ImageMessage.fromJson(Map<String, dynamic> json) {
  return ImageMessage(
    content: json['content'],
    name: json['name'],
    size: json['size'],
  );
}