Map<String, dynamic> toMap() { return { 'key': key, 'scope': scope, 'type': type, 'value': value, }; }