factory UserSetting.fromJson(Map<String, dynamic> json) { return UserSetting( action: (json['Action'] as String).toAction(), permission: (json['Permission'] as String).toPermission(), ); }