Skip to content

Glossary: Dart Basics

fromJson

Also written: toJson

A named constructor pattern that builds an object from a decoded JSON map, such as MenuItem.fromJson. toJson does the reverse.

Where the book teaches it

Related terms

JSONnamed constructorfactory constructor