toJson method

Map<String, dynamic> toJson()

Converts this LastUsedMethod into a JSON map.

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'type': type?.toJsonValue,
  };
}