toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'totalStorageBytes': totalStorageBytes,
    'usedStorageBytes': usedStorageBytes,
    'availableStorageBytes': availableStorageBytes,
    'usagePercent': usagePercent.toStringAsFixed(2),
    'messageCount': messageCount,
    'activeMailboxes': activeMailboxes,
    'healthScore': healthScore,
  };
}