toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (parentId != null) {
    _json[r'parent_id'] = parentId;
  }
  if (childId != null) {
    _json[r'child_id'] = childId;
  }
  return _json;
}