toJson method
Implementation
Map<String, Object?> toJson() => {
'category': category.wireName,
'action': action.wireName,
'key': key,
if (id != null) 'id': id,
if (beforeCount != null) 'beforeCount': beforeCount,
if (afterCount != null) 'afterCount': afterCount,
'valueState': valueState.wireName,
if (valueState == EntityGraphDevtoolsValueState.included ||
valueState == EntityGraphDevtoolsValueState.redacted) ...{
'before': before,
'after': after,
},
};