toMap method

  1. @override
Map<String, dynamic> toMap()
override

Implementation

@override
Map<String, dynamic> toMap() => <String, dynamic>{
      'type': type.key,
      'label': label,
      'data': data,
      'text': text,
      'displayText': displayText,
    }.excludeNull();