Git Product home page Git Product logo

autojson's Introduction

AutoJson as plugin GitHub stars GitHub forks

  • 作用:在flutter工程的bean类中自动生成json_serializable和jaguar_serializer需要的序列化相关代码。
  • 支持:Idea、AandroidStudio

使用方式

使用方式一(v1.1以上)

  1. 依次打开 AndroidStudio(Idea) -> File -> Settings -> Plugin -> 搜索AutoJson -> 安装AutoJson -> 重启AndroidStudio(Idea)
  2. 打开.dart文件(v1.1可不用手动选择类名)。
  3. 点击鼠标右键,选择 JsonSerializable或者JaguarSerializer,或者直接点击 Control+Enter (Windows:Alt+Insert)

使用方式二(v1.0以上)

  1. 依次打开 AndroidStudio(Idea) -> File -> Settings -> Plugin -> 搜索AutoJson -> 安装AutoJson -> 重启AndroidStudio(Idea)
  2. 打开.dart文件,双击鼠标左键选择 .dart 文件的类名(最新版本可不用选中类名)。
  3. 点击鼠标右键,选择 JsonSerializable或者JaguarSerializer,或者直接点击 Control+Enter (Windows:Alt+Insert)

版本

  • v1.5 修复部分问题;
  • v1.4 终于支持jaguar_serializer了;
  • v1.3 修复extends、implements关键词带来的问题;
  • v1.2 修复操作图片的问题。
  • v1.1 ① 体验提升:不用选中类名即可生成需要的代码; ② 功能限制:仅在 xxx.dart 文件中可用此插件。
  • v1.0 满足基本功能。

效果图

image

autojson's People

Contributors

luodijackshen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.