toJson method

  1. @override
Map<String, dynamic> toJson()
override

Density$PicogramPerLiter in JSON Map for advance use-case

Implementation

@override
Map<String, dynamic> toJson() => {
      majorName: {
        _unit: _minorName,
        _value: value,
      },
    };