toObject method
Convert class to Object.
Implementation
@override
Object toObject({int indentDepth = 0}) {
return {
"name": name,
"type": type,
"flags": flags,
"state": state,
"sessionId": sessionId,
"applicationId": applicationId,
"details": details,
"timestamps": timestamps?.toObject(),
"assets": assets,
"syncId": syncId,
"createdAt": createdAt,
"party": party?.toObject(),
"emoji": emoji?.toObject(),
"buttons": buttons
};
}