# Music (/zh-CN/api-reference/rtc/flutter/class-music)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
```dart
class Music {
const Music(
{this.songCode,
this.name,
this.singer,
this.poster,
this.releaseTime,
this.durationS,
this.type,
this.pitchType,
this.lyricCount,
this.lyricList,
this.climaxSegmentCount,
this.climaxSegmentList});
@JsonKey(name: 'songCode')
final int? songCode;
@JsonKey(name: 'name')
final String? name;
@JsonKey(name: 'singer')
final String? singer;
@JsonKey(name: 'poster')
final String? poster;
@JsonKey(name: 'releaseTime')
final String? releaseTime;
@JsonKey(name: 'durationS')
final int? durationS;
@JsonKey(name: 'type')
final int? type;
@JsonKey(name: 'pitchType')
final int? pitchType;
@JsonKey(name: 'lyricCount')
final int? lyricCount;
@JsonKey(name: 'lyricList')
final List? lyricList;
@JsonKey(name: 'climaxSegmentCount')
final int? climaxSegmentCount;
@JsonKey(name: 'climaxSegmentList')
final List? climaxSegmentList;
factory Music.fromJson(Map json) => _$MusicFromJson(json);
Map toJson() => _$MusicToJson(this);
}
```
## 属性 [#属性]
音乐资源的编号,用于标识一个音乐资源。
音乐资源名称。
歌手名。
音乐资源海报的下载地址。
音乐资源发布的时间。
音乐资源类型:
- 1:左声道伴奏,右声道原唱的单音轨音源。
- 2:只有伴唱的单音轨音源。
- 3:只有原唱的单音轨音源。
- 4:多音轨音源。
歌曲是否支持演唱评分功能:
- 1:歌曲支持演唱评分功能。
- 2:歌曲不支持演唱评分功能。
音乐资源总时长 (秒)。
支持的歌词类型:
- 0:xml 格式。
- 1:lrc 格式。
音乐高潮片段列表,详见 [ClimaxSegment](/zh-CN/api-reference/rtc/flutter/class-climaxsegment)。
歌曲的歌词数量。
高潮片段的数量。