Full Stack Flutter
チャンネル登録者数 1.4万人
394 回視聴 ・ 17いいね ・ 2024/07/29
This is a talk from the Full Stack Flutter conference held in May 2024.
fullstackflutter.dev/
I think we all agree that JSON deserialization is one of the most common tasks we as developers of Dart and Flutter applications, have to perform regularly, which means that implementation efficiency in this area has a significant impact on the overall speed and ease of the development. Yet over and over I see a few pretty common scenarios.
Some folks prefer to do JSON deserialization manually, which is more time-consuming and error-prone than using code generation. And even if they do use code generation, they’d have data models with JSON deserialization logic, corresponding domain models with similar structure, and mappers that copy data back and forth between data and domain models, maybe with slight modifications.
Clearly, such an approach has a big benefit: if there's a change in the data structure received from the backend, the required application change is minimal and is contained in the deserialization logic, so that the domain model structure remains unchanged and thus no further updates are required in the business logic layer and above. This is a very important benefit, and in this session, I’ll show you how to achieve the same result with less code.
About the speaker
Anna Leushchenko is a mobile development expert, passionate about quality software, from Ukraine. She is a Women Techmakers Ambassador and Google Developer Expert in Dart and Flutter. Anna talks and blogs about cross-platform development, contributes to OSS, and mentors talented women in tech.
コメント
使用したサーバー: directk
コメントを取得中...