UserLeaveRoomEntity.fromJson constructor

UserLeaveRoomEntity.fromJson(
  1. dynamic data
)

Implementation

UserLeaveRoomEntity.fromJson(data) {
  Map<String, dynamic> json =
      data is Map ? data.cast<String, dynamic>() : jsonDecode(data);
  userId = json['userId'];
  reason = json['reason'];
}