fromJson static method

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

Creates a object from a json

Implementation

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