toMap method

Map<String, dynamic> toMap()

Serializes this mutation entry to a JSON-compatible map.

Implementation

Map<String, dynamic> toMap() => {
      'id': id,
      'mutationType': mutationType,
      'payload': payload,
      'createdAt': createdAt.toIso8601String(),
      'conflictPolicy': conflictPolicy.name,
      'retryCount': retryCount,
    };