toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'rooms': rooms.map((k, v) => MapEntry(k, v.toJson())),
    };