toJson method

  1. @override
Object toJson()
override

Converts this object to something serializable in JSON.

Implementation

@override
Object toJson() => <Object>[
      _patternItemTypeToJson(type),
      length,
    ];