ChatLocation.fromJson constructor

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

Creates a new ChatLocation object from json.

Implementation

factory ChatLocation.fromJson(Map<String, dynamic> json) {
  return ChatLocation(
    location: Location.fromJson(json['location'] as Map<String, dynamic>),
    address: json['address'] as String,
  );
}