toJson method
Implementation
@override
Object toJson() => {
if (name.isNotDefault) 'name': name,
if (displayName.isNotDefault) 'displayName': displayName,
if (customMetadata.isNotDefault)
'customMetadata': [for (final i in customMetadata) i.toJson()],
'updateTime': ?updateTime?.toJson(),
'createTime': ?createTime?.toJson(),
};