toJson method

Map<String, dynamic>? toJson()

Returns JSON-serializable representation of this style.

Implementation

Map<String, dynamic>? toJson() => _data.isEmpty
    ? null
    : _data.map<String, dynamic>((String _, NotusAttribute value) =>
        MapEntry<String, dynamic>(value.key, value.value));