toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic> toJSON()=>{
  'name': name,
  'imgUrl': imgUrl,
  'profileId': profileId,
  'instrument': instrument?.toJSON() ?? Instrument().toJSON(),
  'vocalType': vocalType.name,
  'role': role.name,
  'isMuted': isMuted,
};