toJson method

Map<String, Object?> toJson()

Serializes this status to JSON.

Implementation

Map<String, Object?> toJson() => {
  'id': id,
  'state': state.name,
  'payload': payload,
  'error': error?.toJson(),
  'meta': meta,
  'attempt': attempt,
};