toJson method

  1. @override
Object toJson()
override

Implementation

@override
Object toJson() {
  return {
    if (element.isNotDefault) 'element': element,
    if (oldValue.isNotDefault) 'oldValue': oldValue,
    if (newValue.isNotDefault) 'newValue': newValue,
    if (changeType.isNotDefault) 'changeType': changeType.toJson(),
    if (advices.isNotDefault) 'advices': encodeList(advices),
  };
}