serialize method
Implementation
@override
Map<String, dynamic> serialize() {
var _result = <String, dynamic>{};
_result.addAll(super.serialize());
if (position != null) {
_result['Position'] = position!.serialize();
}
if (footnoteType != null) {
switch (footnoteType!) {
case Footnote_FootnoteTypeEnum.footnote:
_result['FootnoteType'] = 'Footnote';
break;
case Footnote_FootnoteTypeEnum.endnote:
_result['FootnoteType'] = 'Endnote';
break;
default:
break;
}
}
if (referenceMark != null) {
_result['ReferenceMark'] = referenceMark!;
}
if (text != null) {
_result['Text'] = text!;
}
if (content != null) {
_result['Content'] = content!.serialize();
}
return _result;
}