toJson method

Map<String, dynamic> toJson ()

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
      'description': this._description,
      'value': this._value,

      // To avoid JSON issues, a string representation is used.
      // Future development will see a ByteData / Uint8List format
      'image': this._image.toString(),
    };