toJson method

  1. @override
Map<String, dynamic> toJson(
  1. UThreadViewPostParent object
)

Implementation

@override
Map<String, dynamic> toJson(UThreadViewPostParent object) => object.when(
      threadViewPost: const ThreadViewPostConverter().toJson,
      notFoundPost: const NotFoundPostConverter().toJson,
      blockedPost: const BlockedPostConverter().toJson,
      unknown: (data) => data,
    );