toJson method
Implementation
Map<String, Object?> toJson() => {
if (accessType != null) 'accessType': accessType,
if (condition != null) 'condition': condition,
'dataId': dataId,
if (hitCondition != null) 'hitCondition': hitCondition,
};