@override Object toJson() => { if (type.isNotDefault) 'type': type, if (childType.isNotDefault) 'childType': childType, };