toJson abstract method

Map<String, dynamic> toJson()

将对象转成 Map 键值对

Implementation

Map<String, dynamic> toJson();