toJson method

  1. @override
Map<String, Object?> toJson()

Implementation

@override
Map<String, Object?> toJson() => {
      if (purpose != null) "purpose": encodeValue(purpose),
      if (status != null) "status": encodeValue(status),
      if (pageNumber != null) "page_number": encodeValue(pageNumber),
      if (pageSize != null) "page_size": encodeValue(pageSize),
      if (createdAfter != null) "created_after": encodeValue(createdAfter),
      if (createdBefore != null) "created_before": encodeValue(createdBefore),
    };