toMap method

Map<String, dynamic> toMap()

Converts the InfospectFormDataField object into a Map representation.

Returns a Map with the following key-value pairs:

  • 'name': The name of the data field.
  • 'value': The value of the data field.

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'name': name,
    'value': value,
  };
}