toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      'type': type.index,
      'uri': uri,
      'transformation':
          _matrixValueNotifierConverter.toJson(transformNotifier),
      'name': name,
      'data': data,
    }..removeWhere((String k, dynamic v) => v == null);