toJson method

Map<String, dynamic> toJson()

Creates Map Object from Class Object

Implementation

Map<String, dynamic> toJson() => {
      'name': name,
      'type': type,
      'value': value,
      'docs': docs,
    };