toMap method

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

Implementation

@override
Map<String, Object?> toMap() {
  return {
    'value': value,
    if (total != null) 'total': total,
    if (hasMore != null) 'hasMore': hasMore,
  };
}