---
title: "Discussion on \"Cleaner Flutter Vol. 6: Modeling some data\" | Hashnode"
description: "Discussion on \"Cleaner Flutter Vol. 6: Modeling some data\". Turning entities to models"
url: "https://hashnode.com/posts/cleaner-flutter-vol-6/6201e59d4efba97010a97fc6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Cleaner Flutter Vol. 6: Modeling some data](https://marcossevilla.dev/cleaner-flutter-vol-6?utm_source=hashnode&utm_medium=feed)

Turning entities to models

Feb 4, 2021 · 8 min read · marcossevilla.dev  
Read the article

-   [#dart](https://hashnode.com/tag/dart)
-   [#flutter-sdk](https://hashnode.com/tag/flutter-sdk)
-   [#clean-code](https://hashnode.com/tag/clean-code)
-   [#architecture](https://hashnode.com/tag/architecture)
-   [#software-architecture](https://hashnode.com/tag/software-architecture)

## Written by

[Marcos Sevilla](https://hashnode.com/@marcossevilla)

@marcossevilla · Barcelona, Spain

  
[View profile](https://hashnode.com/@marcossevilla)

Senior Engineer at Very Good Ventures

I'm a Senior Engineer at Very Good Ventures, a Flutter development consultancy. I build Flutter apps for large-scale companies and do open source work for popular Dart and Flutter packages such as Very Good CLI and Dart Frog.

## Responses 2

Markdown supported · ⌘↵ to post

[Alexander Semeniuk](https://hashnode.com/@alexsem)

[Mar 22, 2023](https://hashnode.com/posts/cleaner-flutter-vol-6/6201e59d4efba97010a97fc6/comment/641b23684ed75a1867a60440)

How do you use json\_serializeable annotations (for example, @JsonKey) in model classes? You don't have access to field declaration in models.

[Dung Nguyen Minh](https://hashnode.com/@dungngminh)

[May 24, 2022](https://hashnode.com/posts/cleaner-flutter-vol-6/6201e59d4efba97010a97fc6/comment/628d19c9b4bd016fc9a31ebf)

Can you show a example create `Model` with new `super` parameters in Dart 2.17 using `json_serializable` and `@JsonKey(name:)` annotation? I confused because the gen file can get right name json field :(

Hope you reply soon!

[Marcos Sevilla](https://hashnode.com/@marcossevilla)

[Jun 2, 2022](https://hashnode.com/posts/cleaner-flutter-vol-6/6201e59d4efba97010a97fc6/comment/628d19c9b4bd016fc9a31ebf#reply-62994e74448447175b8de903)

Will try to publish it before the weekend 👍
