serialize method

  1. @override
dynamic serialize()
override

Implementation

@override
dynamic serialize() => {
      'type': 'simple',
      'format': format,
      'data': data,
    };