toJson method

Map<String, int> toJson()

Implementation

Map<String, int> toJson() => {'type': type};