Create a map with all attributes names as keys and the attribute values as primitives(int, List, Map, String, ...) or Serializable.
@override Map<String, dynamic> toMap() { final json = super.toMap(); return json; }