toMap method

  1. @override
Map<String, Object?> toMap()
override

Implementation

@override
Map<String, Object?> toMap() {
  final map = <String, Object?>{
    'schema': schema,
    'data': data,
  };
  map.removeWhere((key, value) => value == null);
  return map;
}