toJson method

Map<String, dynamic> toJson()

Converts to JSON.

Implementation

Map<String, dynamic> toJson() => {
  'id': id,
  'object': object,
  'type': type,
  'expires_at': expiresAt,
  if (audio != null) 'audio': audio!.toJson(),
  if (include != null) 'include': include,
};