toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'icon': icon,
    'name': name,
    'username': username,
    'action': action,
    'type': type,
    ..._extraProperties,
  };
}