toSaveObject method
Implementation
Map<String, dynamic> toSaveObject() {
return {
'id': id,
'openapi': openapi,
'info': info.toJson(),
'servers': servers.map((e) => e.toJson()).toList(),
'tags': tags.map((e) => e.toJson()).toList(),
'components': components?.toSaveObject(),
'paths': paths.map(
(key, value) => MapEntry(
key,
value.map((e) => e.toSaveObject()).toList(),
),
)
};
}