Creates Map from Class Object
Map
Map<String, dynamic> toJson() => { 'name': name, 'type': type, 'value': value.toList(growable: false), 'docs': docs, };