Map<String, dynamic> toJson() => <String, dynamic>{ 'type': type, 'className': className, 'objectId': objectId, };