toMap abstract method

Map<String, dynamic> toMap()

toMap returns a map with each property of the class as it's field name and their respective data as value.

Implementation

Map<String, dynamic> toMap();