toJson method

Map<String, dynamic> toJson()

Generates a json from current model

Implementation

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