ChatNearby.fromJson constructor

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

Parse from a json

Implementation

factory ChatNearby.fromJson(Map<String, dynamic> json) => ChatNearby(
      chatId: json['chat_id'],
      distance: json['distance'],
    );