toDict method
to map.
Implementation
Map<String, dynamic> toDict() {
Map<String, dynamic> d = {};
d['className'] = className;
d['version'] = version;
d['decoration'] = decoration;
d['replacement'] = replacement;
d['anotherName'] = anotherName;
return d;
}