Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mahanrahmati/mastodon-entities

A Dart package containing Mastodon API entities.
https://github.com/mahanrahmati/mastodon-entities

dartlang mastodon mastodon-entities

Last synced: 2 months ago
JSON representation

A Dart package containing Mastodon API entities.

Awesome Lists containing this project

README

        


pub.dev



## Introduction

This package provides classes for working with Mastodon API entities in Dart.

## Features

- Handles all entity types defined in Mastodon API docs.
- Provides serialization and deserialization methods for working with entities.

## Installation

Add Mastodon Entities as a dependency in your pubspec.yaml:

```yaml
dependencies:
mastodon_entities: ^1.1.14+1
```

Then, run dart pub get to install the package.

## Usage

To use Mastodon Entities in your application, simply import the package:

```dart
import 'package:mastodon_entities/mastodon_entities.dart';
```

## Differences

| Mastodon | Mastodon Entities |
| -------- | ----------------- |
| Context | StatusContext |
| Error | MastodonError |
| List | UserList |

## License

Mastodon Entities is [BSD 3-Clause licensed](./LICENSE).

## Contributing

Contributions are welcome! If you find a bug or want to add a new feature, please open an issue or submit a pull request.