toJson method
Creates Map from Class Object
Implementation
Map<String, dynamic> toJson() => {
'name': name == null ? None : Option.some(name),
'type': type,
'typeName': typeName == null ? None : Option.some(typeName),
'docs': docs,
};