toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'eventId': eventId,
    'relayUrl': relayUrl,
    'reason': reason.name,
    'state': state.name,
    'attemptCount': attemptCount,
    'lastAttemptAt': lastAttemptAt,
    'nextRetryAt': nextRetryAt,
    'lastError': lastError,
    'lastOkMessage': lastOkMessage,
  };
}