Serialize this component to a JSON object.
Map<String, dynamic> toJson () => { 'id': id, 'name': name, };